<?php
namespace Home\Controller;
use Common\Controller\CommonController;
class SalesController extends CommonController {
    public function index(){
		$list=M('Sales')->where('status = 1')->order('add_time desc')->limit(2)->select();
    	$this->assign('list',$list[0]);
    	$this->assign('list1',$list[1]);
    	$this->display();
    }
}